package com.nfu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;

@SpringBootApplication
public class PandaAdminApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(PandaAdminApplication.class, args);
        ConfigurableEnvironment environment = run.getEnvironment();
        String port = environment.getProperty("server.port");
        System.out.println("==========================================");
        System.out.println("后端接口访问地址：http://localhost:" + port);
        System.out.println("SpringBoot启动成功！");
        System.out.println("==========================================");
    }

}
